import React from 'react'


function RefDemo (props) {
  return (
    <div>这是一个用来测试组件</div>
  )
}

const FancButton = React.forwardRef((props, ref) => {
  return (
    <div ref={ref}>
      {props.children}
      <button>点击事件</button>
    </div>
  )
})

export {
  RefDemo,
  FancButton
}